def digits_or_letters(s: str) -> str:
    digits_num = 0
    letters_num = 0
    for char in s:
        if char.isdigit():
            digits_num += 1
        elif char.isalpha():
            letters_num += 1
    if digits_num > letters_num:
        return "digits"
    elif digits_num < letters_num:
        return "letters"
    else:
        return "tie"

